let config = {
    项目名称: "中国象棋",
    接口网址: "http://localhost:8048",
    版权所有: "云社区",
    图片地址: ""
}

if (process.env.NODE_ENV != "development") {
    Object.assign(config, {
        接口网址: document.location.origin,
        图片地址: "static/"
    })
}

String.prototype.replaceAll = function (search, replacement) {
    var target = this;
    return target.replace(new RegExp(search, 'g'), replacement);
};

export default config